package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysArticle;

import java.util.Map;

/**
 * @PackageName com.ruoyi.system.service
 * @ClassName ISolrService
 * @Auther jgg
 * @Date 2022-7-20 17:57
 */
public interface ISolrService {
    void addArticle(SysArticle sysArticle);

    void updateArticle(SysArticle sysArticle);

    void deleteArticle(Long articleId);

    /**
     * 搜索文章
     *
     * @param pageNo
     * @param pageSize
     * @param params
     * @return
     */
    AjaxResult searchArticle(Integer pageNo, Integer pageSize, Map<String, Object> params);


}
